﻿using System;
using System.Collections.Generic;
using System.Text;
using SuperListEx.Sections;

namespace SuperListEx
{
    public delegate object getPreviewText(object i);

    /// <summary>
    /// Provies 2 lines of preview text below each item in the list
    /// </summary>
    public class PreviewListStyle
    {
        private ListControl _listControl;

        public PreviewListStyle(ListControl listControl, PreviewStyle style, getPreviewText getText)
        {
            _listControl = listControl;
            listControl.SectionFactory = new MySectionFactory(style, getText);
            _listControl.LayoutSections();
        }
    }
}
